import { Injectable } from '@angular/core';
import { HttpClient } from "@angular/common/http";
@Injectable({
  providedIn: 'root'
})
export class PollutsService {
  constructor(
    private http: HttpClient,
  ) { }
  // 属性信息查询
  public queryProperty(queryStr, body) {
    return this.http.post<any>("", null)
    // return this.dataRxInquireService.post('polluts', 'query.property', body, null, queryStr);
  }
  // 动态属性查询
  public dynamicuQeryProperty(queryStr, body) {
    return this.http.post<any>("", null)
    // return this.dataRxInquireService.post('polluts', 'compPropertyQuery', body, null, queryStr);
  }
  // 空间信息查询
  public queryGeometry(body) {
    return this.http.post<any>("", null)
    // return this.dataRxInquireService.post('polluts', 'query.geometry', body, null);
  }
  // 详情查询
  public findDetail(queryStr) {
    return this.http.get<any>("")
    // return this.dataRxInquireService.get('polluts', 'query.detail', null, queryStr);
  }
  public getPropertyInfo(layerId) {
    return this.http.get<any>("")
    // return this.dataRxInquireService.get('polluts', 'query.condition', null, layerId);
  }
  // 获取图层列表
  public getLayersList() {
    return this.http.get<any>("")
    // return this.dataRxInquireService.get('polluts', 'query.layers', null, null);
  }
  // 获取图层列表
  public getLayersRainList(params) {
    return this.http.get<any>("")
    // return this.dataRxInquireService.get('polluts', 'query.layers.rain', null, params);
  }
}
